package com.gyhy.dumplings.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gyhy.dumplings.order.entity.OrderDetailEntity;
import com.gyhy.dumplings.order.entity.OrderEntity;
import com.gyhy.dumplings.order.vo.OrderVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: 光影灰翼
 * @date: 2022-10-09 8:56
 * @version: 1.0
 * @email: 978330688@qq.com
 */
@Service
public interface OrderService extends IService<OrderEntity> {

    String generateOrder(Long u_id, OrderVo orderVo) throws Exception;

    Long initOrder(Long u_id);


    void saveOrderDetails(List<OrderDetailEntity> orderDetailEntities, Long u_id);

    String payOrder(List<OrderDetailEntity> orderDetailEntities,Long orderId,String note);
}
